﻿using System;
using System.Runtime.InteropServices;

namespace WiMo.Games.Premium.GDIDisplay.DirectDraw
{
    internal static class ExceptionUtil
    {
        public static Exception Create(uint errorCode)
        {
            ErrorCodes error = (ErrorCodes) errorCode;
            return new COMException("COM Exception : " + errorCode.ToString(), (int)errorCode);
        }
    }
}
